package com.zycfc.zsf.boot.util.bean.test;

import java.util.*;

public class AccChild
{
    private String m;
    private List<AccStudent> students;
    
    public String getM() {
        return this.m;
    }
    
    public List<AccStudent> getStudents() {
        return this.students;
    }
    
    public AccChild setM(final String m) {
        this.m = m;
        return this;
    }
    
    public AccChild setStudents(final List<AccStudent> students) {
        this.students = students;
        return this;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AccChild)) {
            return false;
        }
        final AccChild other = (AccChild)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$m = this.getM();
        final Object other$m = other.getM();
        Label_0065: {
            if (this$m == null) {
                if (other$m == null) {
                    break Label_0065;
                }
            }
            else if (this$m.equals(other$m)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$students = this.getStudents();
        final Object other$students = other.getStudents();
        if (this$students == null) {
            if (other$students == null) {
                return true;
            }
        }
        else if (this$students.equals(other$students)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof AccChild;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $m = this.getM();
        result = result * 59 + (($m == null) ? 43 : $m.hashCode());
        final Object $students = this.getStudents();
        result = result * 59 + (($students == null) ? 43 : $students.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "AccChild(m=" + this.getM() + ", students=" + this.getStudents() + ")";
    }
}
